<template>
  <el-container>
    <el-aside width="auto">
      <common-aside />
    </el-aside>
    <el-container>
      <el-header>
        <common-header />
      </el-header>
      <el-main class="main">
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import CommonAside from "../components/CommonAside.vue";
import CommonHeader from "../components/CommonHeader.vue";
export default {
  data() {
    return {};
  },
  mounted() {
    // this.$store.dispatch("getUserInfo");
  },
  components: {
    CommonAside,
    CommonHeader,
  },
};
</script>

<style lang="less" scoped>
.el-header {
  padding: 0;
}

.el-aside {
  height: 100vh;
}

.main {
  height: calc(100vh - 60px);
  overflow: auto;
}
</style>
